import { Button } from 'antd'

interface IPFS {
  onClick : () => void
}
export function RedButton({onClick} : IPFS) {
  console.log("----红按钮")
  return (
    <div>
      <Button onClick = {onClick}>+</Button>
    </div>
  )
}

export function BlueButton({onClick} : IPFS) {
  console.log("----蓝按钮")
  return (
    <div>
      <Button onClick = {onClick}>+</Button>
    </div>
  )
}
